#include"commu.hpp"

int main()
{
    Shm shm(USER);
    NamedPipe np;
    np.OpenForWrite();
    char* address =(char*)shm.Address();
    int index = 0;
    for(char start = 'A' ; start <= 'Z'; start++,index+=2)
    {
        sleep(1);
        address[index] = start;
        sleep(1);
        address[index+1] = start;
        address[index+2] = '\0';
        sleep(1);
        np.Awake();
    }
    sleep(2);
    return 0;
}

